// KIsReplace.cpp : implementation file
//

#include "stdafx.h"
#include "KIsReplace.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// KIsReplace dialog


KIsReplace::KIsReplace(CWnd* pParent /*=NULL*/)
	: CDialog(KIsReplace::IDD, pParent)
{
	//{{AFX_DATA_INIT(KIsReplace)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void KIsReplace::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(KIsReplace)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(KIsReplace, CDialog)
	//{{AFX_MSG_MAP(KIsReplace)
	ON_BN_CLICKED(IDC_BUTTON_YES, OnButtonYes)
	ON_BN_CLICKED(IDC_BUTTON_ALLYES, OnButtonAllyes)
	ON_BN_CLICKED(IDC_BUTTON_CANCEL, OnButtonCancel)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// KIsReplace message handlers

void KIsReplace::OnButtonYes() 
{
	EndDialog(1);	
}

void KIsReplace::OnButtonAllyes() 
{
	EndDialog(2);		
}

void KIsReplace::OnButtonCancel() 
{
	EndDialog(3);		
}

BOOL KIsReplace::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	SetDlgItemText(IDC_STATIC_TIP,m_strTitle);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
